<h1>Edit Employee</h1>

<div class="form">
  <%= error_messages_for :employee -%>

  <fieldset>
  <legend>Edit Employee Details</legend>
  <% form_for :employee, :url => { :action => "update", 
                               :id     => @employee.id } do |form| %>
    <div>
      <%= form.label :name %>:<br />
      <%= form.text_field :fname, :size => 35, :class => "text" %>
    </div>
    <div>
      <%= form.label :email %>:<br />
      <%= form.text_field :email, :size => 35, :class => "text" %>
    </div>
    <div>
      <%= form.label :profile %>:<br />
      <%= form.text_area :profile, :rows => 4, :class => "text" %>
    </div>
    <div>
      Administrator: 
      <%= form.radio_button :admin, true, :class => "radio" %> <!-- <label id="code.rails_app.layout_employees.13"/> -->
      <label for="employee_admin_true">Yes</label>
      <%= form.radio_button :admin, false, :class => "radio" %>
      <label for="employee_admin_false">No</label>
    </div>

    <%= submit_tag "Save", :class => "submit" %> &nbsp;
    <%= link_to "cancel", :action => "index" %>
  <% end %>
  </fieldset>
</div>